﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EnglishLibrary;
using DataAccess;

namespace DataTransfer
{
    /// <summary>
    /// Transfer the data from the dataaccess object to the UI and vice versa
    /// </summary>
    public class RateDT
    {
        //The object for invoking methods
        RateDAO rateDAO = new RateDAO();

        /// <summary>
        /// Get all the Rates in the database
        /// </summary>
        /// <returns>List of Rates</returns>
        public List<Rate> GetListRate()
        {
            return rateDAO.GetListItems();
        }

        public string FilePath
        {
            get { return rateDAO.FilePath; }
            set { rateDAO.FilePath = value; }
        }
    }
}
